﻿using KNet.Data.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CNKI.TPI.Web.Search.Model
{
    //[Serializable]
    public class SYS_CMS_OPTION : BaseModel, ITable
    {
        public string Name { get; set; } //名称
        public string DbName { get; set; } //数据库中文名
        public string DbCode { get; set; } //数据库编码
        //public string Value { get; set; } //验证SQL语句
        //public string ReserveData { get; set; } //ReserveData
        public int SortNum { get; set; } //排序
        public int Flag { get; set; } //标志
        //public string DisplayValue { get; set; } //验证SQL的显示语句
        //public string DisplayReserveData { get; set; } //DisplayReserveData
        public int SysID { get; set; }
        public int HasSubmitRight;

        private string values;
        public string Value
        {
            get { return values; }
            set
            {
                if (string.IsNullOrEmpty(value))
                { value = ""; }
                else
                { values = value; }

            }
        }
        private string reservedata;
        public string ReserveData
        {
            get { return reservedata; }
            set
            {
                if (string.IsNullOrEmpty(value))
                { reservedata = ""; }
                else
                { reservedata = value; }

            }
        }

        private string displayreservedata;
        public string DisplayReserveData
        {
            get { return displayreservedata; }
            set
            {
                if (string.IsNullOrEmpty(value))
                { displayreservedata = ""; }
                else
                { displayreservedata = value; }

            }
        }

        private string displayvalue;
        public string DisplayValue
        {
            get { return displayvalue; }
            set
            {
                if (string.IsNullOrEmpty(value))
                { displayvalue = ""; }
                else
                { displayvalue = value; }

            }
        }
    }
}
